package com.zhiyou.service.impl;

import com.zhiyou.dao.UserDao;
import com.zhiyou.model.Auth;
import com.zhiyou.model.User;
import com.zhiyou.service.UserService;

import java.util.List;

public class UserServiceImpl implements UserService {
    private UserDao userDao=new UserDao();
    public User getUserByUnameAndUpassword(String uname, String upassword) {
        User user = UserDao.getUserByUnameAndUpassword(uname, upassword);
        return user;
    }

    @Override
    public List<Auth> findAuth(User user) {
        return userDao.findAuth(user);
    }
}
